<form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
    <div class="layui-card-body">
        <div class="layui-form-item">
            <label class="layui-form-label">学校</label>
            <div class="layui-input-block">
                <input name="school_id" value="{$vo.school_id|default=''}" data-source="{:url('/admin/school/selectpage')}" data-position="fixed" data-field="name" placeholder="学校" class="layui-input selectpage">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">年级</label>
            <div class="layui-input-inline">
                <input name="grade_id" value="{$vo.grade_id|default=''}" placeholder="请选择年级，非必填"  class="layui-input selectpage" data-source="/admin/school_grade/selectpage" data-field="name">
            </div>
            <label class="layui-form-label">班级</label>
            <div class="layui-input-inline">
                <input name="class_id" value="{$vo.class_id|default=''}" placeholder="请选择班级，非必填"  class="layui-input selectpage" data-source="/admin/school_class/selectpage" data-field="name">

            </div>
        </div>
    </div>
    <div class="hr-line-dashed"></div>
    <div class="layui-form-item text-center">
        <!--{notempty name='vo.id'}-->
        <input type='hidden' value='{$vo.id}' name='id'>
        <!--{/notempty}-->
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消编辑</button>
    </div>

</form>
